# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=cpufetch
pkgver=1.06
pkgrel=0
pkgdesc="simple yet fancy CPU architecture fetching tool"
url="https://github.com/Dr-Noob/cpufetch"
arch="x86_64 armhf armv7 aarch64 riscv64" # x86 missing asm/hwcap.h
license="MIT"
options="!check" # no test
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Dr-Noob/cpufetch/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/share/licenses
}

sha512sums="
ee907372608bed6af713f5e071e08a96c86cf0c7aeff1a7bf8511c2b03804d71e63d23e7aa409c2a7da5a0cf198a8a419e26210174f052c36bffa56135609d07  cpufetch-1.06.tar.gz
"
